package cn.iocoder.yudao.module.book.controller.app.classes.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 班级新增/修改 Request VO")
@Data
public class AppClassesSaveReqVO {

    @Schema(description = "班级id", requiredMode = Schema.RequiredMode.REQUIRED, example = "3844")
    private Integer classesId;

    @Schema(description = "班级名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "班级名称不能为空")
    private String cname;

    @Schema(description = "老师id", requiredMode = Schema.RequiredMode.REQUIRED, example = "5349")
//    @NotNull(message = "老师id不能为空")
    private Long userId;

    @Schema(description = "班级指令", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotEmpty(message = "班级指令不能为空")
    private Integer command;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime createTime;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime updateTime;
}